<div>
    <a class="layui-btn" href="{:url('addbanner')}"><i class="layui-icon">&#xe608;</i> 添加</a>
</div>

<table class="layui-table edit-table" lay-data="{cellMinWidth: 80,
    url:'{:url('bannerlist')}',
    page:true
    }" >
    <thead>
    <tr>
        <th lay-data="{field:'banner_id', width:80, sort: true}">排序</th>
        <th lay-data="{field:'path',templet:'#image'}">图片</th>
        <th lay-data="{field:'goods_name'}">商品名称</th>
        <th lay-data="{toolbar: '#manipulate'}">操作</th>
    </tr>
    </thead>
</table>

<script type="text/html" id="manipulate">
    <a class="layui-btn layui-btn-mini" href="{:url('editbanner')}?id={{ d.banner_id }}">修改</a>
    <a class="layui-btn layui-btn-mini layui-btn-danger ajax-delete" data-msg="确定删除？" href="{:url('changebanner')}?id={{ d.banner_id }}">删除</a>
</script>
<script type="text/html" id="image">
    <img src="{{ d.path }}" alt="">
</script>